<template>
  <div>
    <div class="set-item">
      <div class="tit">url</div>
      <div class="it">
        <BaseText :value="url" @inputValue="onInputValue" />
      </div>
    </div>
  </div>
</template>

<script>
import dataApi from '@/view/data-api-edit'
// import BaseText from '@/view/comm/BaseText'
import BaseText from '@/view/comm/BaseTextareaFull'
import DelayExcu from '@/modules/corejs/excu/excu-delay.js'
export default {
  components: {
    BaseText
  },
  data () {
    return {
      url: ''
    }
  },
  computed: {
    currActiveItem () {
      return dataApi.currActiveItem
    }
  },
  created () {
    this.url = dataApi.currActiveItem.url
    this.delayExcu = new DelayExcu()
  },
  methods: {
    onInputValue (v) {
      this.delayExcu.excu(function () {
        dataApi.currActiveItem.url = v
      }, 600)
    }
  }
}
</script>

<style scoped>
.r-editor {
  position: relative;
  background-color: #fff;
  font-size: 32px;
}
.del-ico {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  color: #f52f2f;
}
.add-ico {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  color: #00b7ee;
  vertical-align: -5px;
}
.v-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.v-item {
  white-space: nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.del {
      vertical-align: -5px;
}
.n {
  vertical-align: middle;
}
</style>
